package com.woniu.mapper;

import com.woniu.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//@Mapper
public interface UserMapper {
    List<User> findAll();
    List<User> findAll(String name);
    Integer add(User user);
    User findByName(@Param("name") String name);

    Integer delete(@Param("id") Integer id);
}
